<form action="spieltage_freigeben-v.php" method="post">


<?php
	

	include("../inc/joomlaInt_admin.php");
	include("../inc/inc_configuration.php");
	
if ($jUser==0)
{
	echo "Bitte zuerst einloggen!";
}
else
{	
	$q="SELECT gid FROM $tbl_users WHERE id=$jUser";
					$qe=mysql_query($q);
					$qeo=mysql_fetch_object($qe);
					
					$gid=$qeo->gid;
					
					if ($gid!=$admingroup)
					{
						echo "Du bist kein Admin!";
						break;
					}
	
	$lq = "SELECT * FROM $tbl_leagues";
	$lqe = mysql_query($lq);
	
	echo'<select name="liga" Size="1">';	
	
	while($row = mysql_fetch_object($lqe))
	{
		$lid = $row->id;
		$ln = $row->name;
		echo '<Option Value="',$lid,'">',$ln,'</option>';
	}
	echo"</select><br><br>";
	echo'<input type="submit" value="OK">';
}
?>


</form>